//
//  CardCell.m
//  jiyujiaProgram
//
//  Created by Jame on 15/10/31.
//  Copyright © 2015年 中良 赵. All rights reserved.
//

#import "CardCell.h"
#import "CircleModel.h"

@implementation CardCell

- (void)awakeFromNib {
    // Initialization code
}


- (void)setCellWithModel:(NSArray *)model WithIndexPath:(NSIndexPath *)index
{
    CircleData *data = model[index.row];
    self.titleLabel.hidden = NO;
    self.titleBackground.hidden = NO;
    [self.iconImage sd_setImageWithURL:[NSURL URLWithString:data.imgUrl] placeholderImage:ECIMAGENAME(@"placeImage.png")];
    self.titleLabel.text = data.name;
}

@end
